#!/bin/bash
#deploy php
sh deploy/deploy.sh $1
#deploy fe
cd fe
echo "deploying fe to $1"
if [ $1 = "test" ]; then
    fis3 release test
fi
if [ $1 = "prod" ]; then
    fis3 release prod1
    fis3 release prod2
fi

if [ $? -ne 0 ];then
    echo "fis release failed!"
    exit 1
fi
exit 0
